package com.sinosoft;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

import java.util.Collections;

/**
 * @author loujiang
 * @date 2020/12/19 9:54 下午
 * @NOTE:
 */

@ComponentScan("com.sinosoft.*")
@SpringBootApplication
@Configuration
public class UserTradeApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(UserTradeApplication.class).
                web(WebApplicationType.SERVLET)
                .run(args);
    }


    @Bean
    public RestTemplate restTemplate() {
        RestTemplate template = new RestTemplate();
        return template;
    }
}
